#include <iostream>

using namespace std;

class Solution
{
  public:
    bool canWinNim(int n)
    {
        return (n % 4) == 0 ? false : true;
    }
};

int main()
{
    int n = 12;
    cout << Solution().canWinNim(n) << endl;
    return 0;
}
